package android.database;

/**
 * @author slc
 * @date 2022/03/30 下午 3:58
 */
public class MatrixCursor implements Cursor {
    private String key;
    private String value;

    public MatrixCursor() {

    }
    public MatrixCursor(String[] data) {

    }

    public void addRow(Object[] data) {

    }

    @Override
    public void setKey(String key) {
        this.key = key;
    }

    @Override
    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public boolean moveToFirst() {
        return value != null && value.length() > 0;
    }

    @Override
    public String getString(int index) {
        return value;
    }

    @Override
    public void close() {
        key = null;
        value = null;
    }
}
